<?php
declare (strict_types=1);

namespace app\admin\controller;

use think\facade\Config;
use think\facade\View;

class Index extends Base
{

    public function index()
    {
        $this->assign('menu', Config::get('menu'));
        return $this->fetch("/index");
    }

    public function welcome()
    {

        return $this->fetch("/welcome");
    }

    public function config()
    {
        return json(Config::get('menu'));
    }
}
